package com.company;

public class Main {

    public static void main(String[] args) {
	// write your code here
        new Teacher();
        new Teacher();
        new Teacher();
        new Teacher(1);
        new Teacher("你好");
        new Teacher().method();
    }
}
class Teacher{
    {
        System.out.println("构造代码块");
    }
 public Teacher(){

 }
    public Teacher(int a){
        System.out.println("构造方法"+123);
    }
    public Teacher(String a){
        System.out.println("构造方法"+456);
    }

public void  method(){
    {System.out.println("局部代码块");}
    {
        {
            {
                {
                    {
                        {
                            {
                                {
                                    int sum=10;
                                    System.out.println(sum);
                                    System.out.println("俄罗斯套娃");
                                    System.out.println("局部代码块控制变量范围");
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

}
